package com.xlh.param.statistic;

import com.xlh.util.InputValidator;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 用户信息
 * <p>
 * Created by lx on 2020/9/28.
 */
@Data
public class UserInfoParam {

    /**
     * 用户信息
     */
    @Length(max = 64, message = "用户信息不能超过64位")
    private String userInfo;

    private boolean updateType;

    public String getUserInfo() {
        return userInfo == null ? null : InputValidator.regSpecialChar(userInfo);
    }

}
